package com.yuyu.shop.infrastructure.persistence.convert;

import cn.hutool.core.bean.BeanUtil;
import com.yuyu.shop.domain.marketing.DO.ActivityDO;
import com.yuyu.shop.infrastructure.persistence.po.ActivityPO;

import java.util.Objects;

/**
 * @author
 * @version 1.0
 * @description: TODO
 * @date 2022/8/4 17:45
 */
public class ActivityPoConvert {


    public static ActivityDO PO2DO(ActivityPO po){
        if (Objects.nonNull(po)){
            ActivityDO activityDO = new ActivityDO();
            BeanUtil.copyProperties(po,activityDO);
            return activityDO;
        }
        return null;
    }
}
